<template>
  <div style="padding: 40px;">
    <div>
      <a-button @click="goPOST">POST网络请求</a-button>
      <a-button style="margin-left: 20px;" @click="goGET">GET网络请求</a-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { getLaws, getLife } from "@/apis/first";

const goPOST = () => {
  getLaws().then((res) => {
    console.log(res);
  });
};

const goGET = () => {
  const tempsu = { 
    bussType: 'zct'
   };
  getLife(tempsu).then((res) => {
    console.log(res);
  });
};
</script>

<style scoped></style>
